<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class CreateVersionsTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('versions', function(Blueprint $table)
		{
			$table->increments('id');
			$table->string('type')->nullable()->comment('软件类型');
			$table->string('version')->nullable()->comment('系统版本号 ');
			$table->string('software_url')->nullable()->comment('新版本的下载地址');
			$table->boolean('is_update')->nullable()->default(1)->comment('是否强制更新');
			$table->string('remark')->nullable()->comment('更新说明');
			$table->text('relase_note', 65535)->nullable()->comment('发布历史');
			$table->string('size')->nullable()->comment('文件大小 KB');
			$table->timestamps();
		});
	}


	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('versions');
	}

}
